package com.jinmdz.fmis.api.admin.model.rolerelation;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;

/**
 * 角色菜单按钮关联请求数据
 *
 * @author LiCongLu
 * @date 2020-03-19 11:28
 */
@ApiModel(value = "角色菜单按钮关联请求数据", description = "角色菜单按钮关联请求数据")
public class RoleMenuButtonRelationSaveData extends BaseBean {

    /**
     * 业务系统角色主键
     */
    @AnValidate(name = "业务系统角色主键", required = true, code = EValidateCode.GREATER_ZERO)
    @ApiModelProperty(value = "业务系统角色主键", name = "businessSystemRoleId", position = 1)
    private Integer businessSystemRoleId;

    /**
     * 业务系统角色菜单集合
     */
    @AnValidate(name = "业务系统角色菜单集合")
    @ApiModelProperty(value = "业务系统角色菜单集合", name = "roleMenuRelations", position = 2)
    private ArrayList<RoleMenuButtonRelationMenuData> roleMenuRelations;

    /**
     * 系统角色按钮集合
     */
    @AnValidate(name = "系统角色按钮集合")
    @ApiModelProperty(value = "系统角色按钮集合", name = "roleMenuButtonRelations", position = 3)
    private ArrayList<RoleMenuButtonRelationButtonData> roleMenuButtonRelations;

    public Integer getBusinessSystemRoleId() {
        return businessSystemRoleId;
    }

    public RoleMenuButtonRelationSaveData setBusinessSystemRoleId(Integer businessSystemRoleId) {
        this.businessSystemRoleId = businessSystemRoleId;
        return this;
    }

    public ArrayList<RoleMenuButtonRelationMenuData> getRoleMenuRelations() {
        return roleMenuRelations;
    }

    public RoleMenuButtonRelationSaveData setRoleMenuRelations(ArrayList<RoleMenuButtonRelationMenuData> roleMenuRelations) {
        this.roleMenuRelations = roleMenuRelations;
        return this;
    }

    public ArrayList<RoleMenuButtonRelationButtonData> getRoleMenuButtonRelations() {
        return roleMenuButtonRelations;
    }

    public RoleMenuButtonRelationSaveData setRoleMenuButtonRelations(ArrayList<RoleMenuButtonRelationButtonData> roleMenuButtonRelations) {
        this.roleMenuButtonRelations = roleMenuButtonRelations;
        return this;
    }
}